<template>
  <div class="about">
    <h1>登录成功</h1>
    {{text}}三种方式取值
    {{gettext}},{{jisuan}}
    <Head />
  </div>
</template>
<script>
// @ is an alias to /src
import Head from "@/components/Head.vue";

export default {
  name: "Home",
  components: {
    Head,
  },
  props: {
    gettext:String
  },
  data() {
    return {
      text: 0,
    };
  },
  created () {
    this.text=this.$parent.text
  },
  computed: {
    jisuan(){
      return this.$parent.text
    }
  }
};
</script>